//@flow

import { 
    applyMiddleware,
    createStore,
    combineReducers,
 } from "redux";
import thunk from "redux-thunk";

import { versionReducer } from "./version/version.reducer";
import { counterReducer } from "./counter/counter.reducer";
const reducers = combineReducers({
    versionReducer,
    counterReducer
})


const middleWare = [
    thunk,
]

// const createAppStore = applyMiddleware(...middleWare)(createStore);

const store = createStore(reducers,applyMiddleware(thunk));

export {store}